package org.example.cake.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import org.example.cake.entity.Discussimg;
import org.example.cake.mapper.DiscussimgMapper;
import org.example.cake.service.DiscussimgService;
@Service
public class DiscussimgServiceImpl implements DiscussimgService{

    @Resource
    private DiscussimgMapper discussimgMapper;

    @Override
    public int deleteByPrimaryKey(Integer imgid) {
        return discussimgMapper.deleteByPrimaryKey(imgid);
    }

    @Override
    public int insert(Discussimg record) {
        return discussimgMapper.insert(record);
    }

    @Override
    public int insertSelective(Discussimg record) {
        return discussimgMapper.insertSelective(record);
    }

    @Override
    public Discussimg selectByPrimaryKey(Integer imgid) {
        return discussimgMapper.selectByPrimaryKey(imgid);
    }

    @Override
    public int updateByPrimaryKeySelective(Discussimg record) {
        return discussimgMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Discussimg record) {
        return discussimgMapper.updateByPrimaryKey(record);
    }

}
